import React from 'react'
import {SearchBar,Button} from "antd-mobile"
import { withRouter } from 'react-router-dom'
import "./Search.less"

function Search(props) {
    let {search,getValue} = props;
    return (
        <div className="search_btn">
            <SearchBar placeholder='请输入内容' onBlur={(e)=>getValue(e)}/>
            <Button color='danger' onClick={()=>search()} className="btn">搜索</Button>
        </div>
    )
}
export default withRouter(Search)
